package com.trkj.pojos;

import java.io.Serializable;
import javax.persistence.*;
import java.math.BigDecimal;
import java.util.Date;


/**
 * The persistent class for the DRUGSTORAGE_REMINDDRUGS database table.
 * 
 */
@Entity
@Table(name="DRUGSTORAGE_REMINDDRUGS")
@NamedQuery(name="DrugstorageReminddrug.findAll", query="SELECT d FROM DrugstorageReminddrug d")
public class DrugstorageReminddrug implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	@Column(name="DRUGSTORAGE_REMIND_ID")
	@SequenceGenerator(initialValue=100,allocationSize=1,name="DRUGSTORAGE_REMIND_ID_GENERATOR", sequenceName="SEQID")
	@GeneratedValue(strategy=GenerationType.SEQUENCE, generator="DRUGSTORAGE_REMIND_ID_GENERATOR")
	private long drugstorageRemindId;

	@Column(name="MEDCINE_COST")
	private BigDecimal medcineCost;

	@Column(name="MEDCINE_NUMBER")
	private BigDecimal medcineNumber;

	private Date remaindate;

	@Column(name="REMIND_NOTE")
	private String remindNote;

	//bi-directional many-to-one association to MedcineDetail
	@ManyToOne
	@JoinColumn(name="MEDCINE_ID")
	private MedcineDetail medcineDetail;

	//bi-directional many-to-one association to Staff
	@ManyToOne
	@JoinColumn(name="STAFF_ID")
	private Staff staff1;

	//bi-directional many-to-one association to Staff
	@ManyToOne
	@JoinColumn(name="STAFF_ID2")
	private Staff staff2;

	public DrugstorageReminddrug() {
	}

	public long getDrugstorageRemindId() {
		return this.drugstorageRemindId;
	}

	public void setDrugstorageRemindId(long drugstorageRemindId) {
		this.drugstorageRemindId = drugstorageRemindId;
	}

	public BigDecimal getMedcineCost() {
		return this.medcineCost;
	}

	public void setMedcineCost(BigDecimal medcineCost) {
		this.medcineCost = medcineCost;
	}

	public BigDecimal getMedcineNumber() {
		return this.medcineNumber;
	}

	public void setMedcineNumber(BigDecimal medcineNumber) {
		this.medcineNumber = medcineNumber;
	}

	public Date getRemaindate() {
		return this.remaindate;
	}

	public void setRemaindate(Date remaindate) {
		this.remaindate = remaindate;
	}

	public String getRemindNote() {
		return this.remindNote;
	}

	public void setRemindNote(String remindNote) {
		this.remindNote = remindNote;
	}

	public MedcineDetail getMedcineDetail() {
		return this.medcineDetail;
	}

	public void setMedcineDetail(MedcineDetail medcineDetail) {
		this.medcineDetail = medcineDetail;
	}

	public Staff getStaff1() {
		return this.staff1;
	}

	public void setStaff1(Staff staff1) {
		this.staff1 = staff1;
	}

	public Staff getStaff2() {
		return this.staff2;
	}

	public void setStaff2(Staff staff2) {
		this.staff2 = staff2;
	}

}